package com.ruoyi.base.pojo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * key-value结构实体
 *
 * @author lcf
 */
@ApiModel
@Data
public class CommonKV<K, V> {
    /**
     * key
     */
    @ApiModelProperty("键")
    private K key;
    /**
     * value
     */
    @ApiModelProperty("值")
    private V value;

    public CommonKV(K key, V value) {
        this.key = key;
        this.value = value;
    }
}
